home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2007 September / PCWSEP07.iso / Software / Linux / Linux Mint 3.0 Light / LinuxMint-3.0-Light.iso / casper / filesystem.squashfs / usr / include / pidgin / gtkprivacy.h < prev    next >
Encoding:
C/C++ Source or Header  |  2007-05-04  |  2.1 KB  |  75 lines

  1. /**
  2.  * @file gtkprivacy.h GTK+ Privacy UI
  3.  * @ingroup pidgin
  4.  *
  5.  * pidgin
  6.  *
  7.  * Pidgin is the legal property of its developers, whose names are too numerous
  8.  * to list here.  Please refer to the COPYRIGHT file distributed with this
  9.  * source distribution.
  10.  *
  11.  * This program is free software; you can redistribute it and/or modify
  12.  * it under the terms of the GNU General Public License as published by
  13.  * the Free Software Foundation; either version 2 of the License, or
  14.  * (at your option) any later version.
  15.  *
  16.  * This program is distributed in the hope that it will be useful,
  17.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  18.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  19.  * GNU General Public License for more details.
  20.  *
  21.  * You should have received a copy of the GNU General Public License
  22.  * along with this program; if not, write to the Free Software
  23.  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  24.  */
  25. #ifndef _PIDGINPRIVACY_H_
  26. #define _PIDGINPRIVACY_H_
  27.  
  28. #include "privacy.h"
  29.  
  30. /**
  31.  * Initializes the GTK+ privacy subsystem.
  32.  */
  33. void pidgin_privacy_init(void);
  34.  
  35. /**
  36.  * Shows the privacy dialog.
  37.  */
  38. void pidgin_privacy_dialog_show(void);
  39.  
  40. /**
  41.  * Hides the privacy dialog.
  42.  */
  43. void pidgin_privacy_dialog_hide(void);
  44.  
  45. /**
  46.  * Requests confirmation to add a user to the allow list for an account,
  47.  * and then adds it.
  48.  *
  49.  * If @a name is not specified, an input dialog will be presented.
  50.  *
  51.  * @param account The account.
  52.  * @param name    The name of the user to add.
  53.  */
  54. void pidgin_request_add_permit(PurpleAccount *account, const char *name);
  55.  
  56. /**
  57.  * Requests confirmation to add a user to the block list for an account,
  58.  * and then adds it.
  59.  *
  60.  * If @a name is not specified, an input dialog will be presented.
  61.  *
  62.  * @param account The account.
  63.  * @param name    The name of the user to add.
  64.  */
  65. void pidgin_request_add_block(PurpleAccount *account, const char *name);
  66.  
  67. /**
  68.  * Returns the UI operations structure for the GTK+ privacy subsystem.
  69.  *
  70.  * @return The GTK+ UI privacy operations structure.
  71.  */
  72. PurplePrivacyUiOps *pidgin_privacy_get_ui_ops(void);
  73.  
  74. #endif /* _PIDGINPRIVACY_H_ */
  75.